//
//  AppSetting.h
//  SFA_Core
//
//  Created by Vergil on 2017/4/10.
//  Copyright © 2017年 Vergil. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "UserInfoModel.h"
#import "TBRHomeModel.h"
@interface AppSetting : NSObject

/**
 登录时输入token
 */
@property (nonatomic,copy)NSString *accessToken;

/**
 动态来改变链接------------------------
 */
@property (nonatomic,copy)NSString *baseUrlString;//默认是外网的,外网连接不通的时候调用内网
@property (nonatomic,copy)NSString *webBaseUrlString;//加载资源的路径----

@property (nonatomic,copy)NSString *userName;

@property (nonatomic,copy)NSString *isLogin;

@property (nonatomic, assign) NSInteger timeDuration;//时间间隔------
@property (nonatomic, assign) NSInteger selStartIndex;//开始选择-----

@property (nonatomic,copy)NSString *topcompanyid;
@property (nonatomic,copy)NSString *userid;//用户和商户的id-------为啥这个还要区分返回 麻蛋呀
@property (nonatomic,copy)NSString *memberid;//大平台会员ID，//字符串
@property (nonatomic,copy)NSString *tokenuserid;//用户id-------商家和员工用的

@property (nonatomic,copy)NSString *tokenid;//字符串
@property (nonatomic,copy)NSString *getBasicMessage;//


@property (nonatomic, assign) NSInteger startCalendaHourIndex;//
@property (nonatomic, assign) NSInteger startCalendaMinIndex;//

@property (nonatomic, assign) NSInteger endCalendaHourIndex;//
@property (nonatomic, assign) NSInteger endCalendaMinIndex;//


@property (nonatomic,copy)NSString *phone;
@property (nonatomic,copy)NSString *password;
@property (nonatomic,copy)NSString *verifycode;
@property (nonatomic,copy)NSString *devicetoken;

@property (nonatomic,copy)NSString *nickname;
@property (nonatomic,copy)NSString *birthday;
@property (nonatomic,copy)NSString *photo;
@property (nonatomic,copy)NSString *telno;
@property (nonatomic,copy)NSString *vipstatus;
@property (nonatomic,copy)NSString *paytype;
@property (nonatomic,copy)NSString *isinner;
@property (nonatomic,copy)NSString *employeeno;
@property (nonatomic,copy)NSString *authstatus;
@property (nonatomic,copy)NSString *idno;
@property (nonatomic,copy)NSString *idfront;
@property (nonatomic,copy)NSString *idback;
@property (nonatomic,copy)NSString *updatetime;



@property (nonatomic, assign) BOOL isFromRegist;//是否是注册界面


+ (instancetype)shareAppSetting;

/**
 获取密码
 
 @param userName 用户名
 @return 密码
 */
- (NSString *)passwordForUserName:(NSString *)userName;

/**
 设置密码
 
 @param passWord 密码
 @param userName 用户名
 */
- (void)setPassWord:(NSString *)passWord userName:(NSString *)userName;


/**
 退出登录
 */
- (void)logoOut;
/**
 登录
 */
- (void)loginIn;
@end
